package org.puremvc.as3.multicore.utilities.assetLoader.events
{
	import flash.events.Event;
	
	public class LoaderErrorEvent extends Event
	{
		
		/**
		 * Defines the value of a name property of an notification object
		 * send if an item in the load que fails to load.
		 */
		public static const ITEM_IOERROR:String = "ioError";
		public static const ITEM_SECURITY_ERROR:String = "securityError";
		
		private var mMessage:String;
		private var mURL:String;
		
		

        // Public constructor.
        public function LoaderErrorEvent(type:String, msg:String, purl:String) 
	    {
            
            super(type);
            
            mMessage = msg;
            mURL = purl;
    
        }
        
		public function get message():String{
			return mMessage;
		}
		
		public function get url():String{
			return mURL;
		}

        // Override the inherited clone() method.
        override public function clone():Event {
            return new LoaderErrorEvent(type, message, url);
        }
    

		
	}
}